package com.woniuxy.dr_mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties("handler")//处理JSON转换时附带到页面上的一个属性Handler
public class DrSpec implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer id;

    private String name;

    private String code;
    //存储规格对应的所有规格值
    @TableField(exist = false)
    private List<DrSpecVal> specVals;
}
